<!DOCTYPE html>
<html lang="zh-CN">

<head>
     <script src="./js/APlayer.min.js" crossorigin="anonymous"
            referrerpolicy="no-referrer"></script>
    <!-- 基础信息 -->
    <meta charset="utf-8">
    

    <meta name="renderer" content="webkit"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="force-rendering" content="webkit"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="theme-color" content="#424242"/>
    <meta name="author" content="Aurora">
    <title>微风徐起，枫韵紫秋</title>
	<!-- Insert this line above script imports  -->
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<!-- normal script imports etc  -->

    <script src="js/jquery.min.js"></script>
	<!-- Insert this line after script imports -->
<script>if (window.module) module = window.module;</script>
    <!-- HarmonyOS Sans -->
    <!-- https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css -->
    <link rel="stylesheet" href="https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css"/>
    <!-- 引入样式 -->
    <link rel="stylesheet" type="text/css"
          href="./css/bootstrap.min.css">
    <link rel="stylesheet" type="text/css" href="./css/style.css">
    <link rel="stylesheet" type="text/css" href="./css/ai.css">
    <link rel="stylesheet" type="text/css" href="./css/mobile.css">
    <link rel="stylesheet" type="text/css" href="./css/loading.css">
    <link rel="stylesheet" type="text/css" href="./css/animation.css">
    <link rel="icon" href="./img/icon/avatar.jpg">
    <link rel="apple-touch-icon" href="./img/icon/avatar.jpg">
     <!-- Izitoast -->
    <link rel="stylesheet" href="./css/iziToast.min.css">
    <script type="text/javascript"
            src="./js/iziToast.min.js">
    </script>
    <!-- FontAwesome -->
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/font-awesome/6.1.2/css/all.min.css">


    <link rel="stylesheet" href="./css/APlayer.min.css"/>
    <script src="./js/APlayer.min.js" ></script>
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-2WVH35V11W"></script>
    
	
    <!-- <script src="./js/Meting.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script> -->
    <!-- IE Out -->
    <script>
        if ( /*@cc_on!@*/ false || (!!window.MSInputMethodContext && !!document.documentMode)) window.location.href =
            "/upgrade-your-browser/index.html?referrer=" + encodeURIComponent(window.location.href);

        window.dataLayer = window.dataLayer || [];
        function gtag(){dataLayer.push(arguments);}
        gtag('js', new Date());

        gtag('config', 'G-2WVH35V11W');
    </script>
    <!-- PWA -->
    <link rel="manifest" href="/manifest.json">
</head>
<body>

<div id="loading-box">

<!--加载动画-->
    <div class="loading-left-bg"></div>
    <div class="loading-right-bg"></div>
    <div class="spinner-box">
        <div class="loader">
            <div class="inner one"></div>
            <div class="inner two"></div>
            <div class="inner three"></div>
        </div>
        <div class="loading-word">
            <p class="loading-title" id="loading-title">枫星</p>
            <span id="loading-text">加载中</span>
        </div>
    </div>
</div>

<section id="section" class="section">
<!--更新提示-->
    <div id="update_msg" class="container mt-3" style="position:absolute;z-index:10;display:none;left: 35%;">
      <div class="toast show" style="background-image:url('img/R-C.jpeg'); ;background-repeat: no-repeat;background-size: 362px 220px;width: 362px;height: 220px;">
          <div class="toast-header" style="background-color:rgba(0,0,0,0)">
            <strong class="me-auto" style="color:#73A4DB">更新提示</strong>
          </div>
          <div class="toast-body" >
            <p id="version">当前版本号：</p>
            <p id="msg">更新内容：</p>
            <br><br>
            <button type="button" class="btn btn-secondary" data-bs-dismiss="toast">忽略</button>
            <button type="button" id="goupdate" class="btn btn-success" style="float: right">立即更新</button>
          </div>
      </div>
    </div>
    <div id="" style="float: right;">
        <button id="min1" type="button" class="btn-min" aria-label="Minimize"></button>
        <button id="close1" type="button" class="btn-close btn-close-white" aria-label="Close"></button>

    </div>
    <div class="modal fade" id="createFileMModal" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
          <div class="modal-dialog" role="document">
            <div class="modal-content">

              <div class="modal-body">
                <form>
                  <div class="form-group" id="crmbtn">
                    <label for="fileName" class="col-form-label" style="color:#000">请输入crm id</label>
                    <input type="text" autofocus class="form-control" style="color:#000" id="fileName" placeholder="3000xxxx">
                  </div>
                    <div class="form-group" id="greatqf" aria-hidden="true">
                    <label for="fileName" class="col-form-label" style="color:#000">请输入待群发内容</label><br>
                    <textarea id="greatqftxt" name="story" rows="5" cols="55" style="color:#000"></textarea>
                      <div>
                          <button type="button" class="btn btn-info" id="nickname">昵称</button>
                          <button type="button" class="btn btn-info" id="parent">家长名</button>
                          <input type="checkbox" id="includeImage" class="w-4 h-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded" />

                      </div>

                  </div>
                </form>
              </div>
              <div class="modal-footer">
                <button type="button" class="btn btn-primary" id="createFileSureBut">确定</button>
              </div>
            </div>
          </div>
        </div>

    <!-- 背景图片 -->
    <div class="bg-all">
        <img id="bg" onerror="this.classList.add('error');">
        <div class="cover"></div>
    </div>
    <!-- 鼠标指针 -->
    <div id="g-pointer-1"></div>
    <div id="g-pointer-2"></div>
    <!-- 主体内容 -->
    <main id="main" class="main" >

        <div class="container" id="container" >

            <div class="row" id="row">
                <div class="col left">
                    <div class="item" id="workProgress" style="margin-top: -50px;">
                        <div class="work-text">&nbsp;<span></span>&nbsp;</div></br>
<!--                        overflow-x:auto; style="display: flex;width:270px;height:200px;"-->
                        <div class="class-text" id="classt" >

                        </div>
                    </div>
                    <!--基本信息-->
                    <div class="main-left">
                        <!--Logo-->
                        <div class="main-img">
                            <img id="logo-img" src="./img/icon/avatar.jpg" alt="img">
                            <div class="img-title">
                                <span class="img-title-big" id="logo-text-1">Maple</span>
                                <span class="img-text" id="logo-text-2">.jl</span>
                            </div>
                        </div>
                        <!--介绍信息-->
                        <div class="message cards" id="switchmore">
                            <div class="des" id="des">
                                <i class="fa-solid fa-quote-left"></i>
                                <div class="des-title"><span id="change">love&nbsp;yourself&nbsp;!</span><br/><span
                                        id="change1">如果我对云说悄悄话，你会介意吗？</span></div>
                                <i class="fa-solid fa-quote-right"></i>
                            </div>
                        </div>
                        <!--社交链接-->
                        <div class="social" id="social">
                            <a  class="link" id="github" style="margin-left: 4px"
                               target="_blank">
                                <i class="fa-brands fa-feishu"></i>
                            </a>
                           
                            <a id="link-text">支持和赞助</a>
                        </div>
                    </div>
                </div>
                <!--第二屏 Logo-->
                <div class="logo cards" style="display: none" id="changemore">
                    <a class="logo-text" id="logo-text-small">wuhobin.top</a>
                </div>
                <div class="col right">

                    <div class="main-right">
                        <!--功能区-->
                        <div class="row rightone" id="rightone">
                            <div class="col hitokotos">
                                <!--一言-->
                                <div class="hitokoto cards" id="hitokoto">
                                    <!--切换音乐-->
                                    <div class="open-music fixed-top" id="open-music">
                                        <i class="fa-solid fa-compact-disc"></i>
<!--                                        <span>&nbsp;打开音乐播放器</span>-->
                                    </div>
                                    <!--切换音乐结束-->
                                    <div class="hitokoto-all">
                                        <div class="hitokoto-text"><span
                                                id="hitokoto_text">每一个人都应该明确自己的方向和位置</span>
                                        </div>
                                        <div class="hitokoto-from">-「&nbsp;<span id="from_text">無名</span>&nbsp;」
                                        </div>
                                    </div>
                                </div>
                                <!--音乐-->
                                <div class="music" id="music">
                                    <div class="music-all">
                                        <div class="music-button">
                                            <div id="music-open">音乐列表</div>
                                            <div id="music-close">回到一言</div>
                                        </div>
                                        <div class="music-control">
                                            <i class="fa-solid fa-backward-step" id="last"></i>
                                            <div id="play">
                                                <i class="fa-solid fa-play"></i>
                                            </div>
                                            <i class="fa-solid fa-forward-step" id="next"></i>
                                        </div>
                                        <div class="music-menu">
                                            <div class="music-text">
                                                <span id="music-name">未播放音乐</span>
                                            </div>
                                            <div class="music-volume" style="display: none;">
                                                <div id="volume-ico">
                                                    <i class="fa-solid fa-volume-low"></i>
                                                </div>
                                                <input type="range" min="0" max="1" step="0.01" id="volume">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col times">
                                <!--时间-->
                                <div class="time cards" id="upWeather">
                                    <div class="timeshow" id="time">
                                        2000&nbsp;年&nbsp;0&nbsp;月&nbsp;00&nbsp;日&nbsp;<span
                                            class="weekday">星期一</span><br><span class="time-text">00:00:00</span>
                                    </div>
                                    <div class="weather">
                                        <span id="city_text">天气</span>&nbsp;
                                        <span id="wea_text">加载失败</span>&nbsp;
                                        <span id="tem_text"></span>
                                        <span id="win_text">次数</span>
                                        <span id="win_speed">超限</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--分隔线-->
                        <div class="line">
                            <i class="fa-solid fa-link"></i>
                            <span class="line-text">功能列表</span>
                        </div>
                        <!--网站链接-->
                        <div class="link">
                            <!--第一组-->
                            <div class="row">
                                <div class="col">
                                        <div class="link-card cards" id="qunfa">
                                            <span class="link-name" id="link-name-1">企微群发</span>
                                        </div>
                                    </a>
                                </div>
                                <div class="col 2">
                                    <div class="link-card cards" id="greatqfbtn">
                                            <span class="link-name" id="link-name-5">高级群发</span>
                                    </div>
                                </div>
                                <div class="col">
                                        <div class="link-card cards" id="dabiaoq">
                                            
                                            <span class="link-name" id="link-name-4">企微标签</span>
                                        </div>
                                    
                                </div>
                            </div>
							
                            <!--第二组-->
                            <div class="row" style="margin-top: 1.5rem;" id="row2">
								
                                <div class="col">
                                    <div class="link-card cards" id="xingke">
                                            <span class="link-name" id="link-name-1">行课物料</span>
                                    </div>
                                
                                </div>
                                <div class="col 2">
                                    
                                    <div class="link-card cards"id="homework_btn">
                                            <span class="link-name" id="link-name-2">高级工作台</span>
                                    </div>   
                                </div>
                                <div class="col">
                                    <div class="link-card cards" id="xubao">
                                            <span class="link-name" id="link-name-3">其他功能</span>
                                    </div>    
                                </div>
                            </div>
							<div class="row" style="margin-top: 1.5rem;display:none;" id="row3">
								<div class="col">
									<div class="link-card cards" >
										<select id="selectkqqgg_kc" class="form-control form-control-placeholder select" style="">
											<option value="两课思维" disabled selected hidden>选择课程类型</option>
											<option value="两课思维" style="color: black;">两课思维</option>
											<option value="莫顿思维" style="color: black;">莫顿思维</option>
											<option value="一课算法" style="color: black;">一课算法</option>
                                            <option value="C1" style="color: black;">C1</option>
										</select>
										<select id="selectkqqgg_jd" class="form-control form-control-placeholder select" style="width:100px;">
												<option value="1" disabled selected hidden>阶段</option>
										</select>
										<select id="selectkqqgg_ks" class="form-control form-control-placeholder select" style="width:100px;">
												<option value="1" disabled selected hidden>课时</option>
										</select>
										<select id="selectkqqgg_lx" class="form-control form-control-placeholder select">
												<option value="1" disabled selected hidden>选择物料类型</option>
												<option value="2" style="color: black;">课前群公告</option>
												<option value="3" style="color: black;">课后群公告</option>
												<option value="4" style="color: black;">开课前私发</option>
										</select>
										<div class="link-card" id="copy">
                                            <span class="link-name" >复制</span>
										</div>
										
                                    </div>
									
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--展开菜单按钮-->
            <div class="menu" id="switchmenu">
                <a class="munu-button cards" id="menu">
                    <i class="fa-solid fa-bars"></i>
                </a>
            </div>
            <!--AI对话框-->
           <div class="more" id="more">
                <!--关闭按钮-->
                <div class="close fixed-top" id="close">
                    <i class="fa-solid fa-circle-xmark"></i>
                </div>
                <div class="line" style="margin-top: -1rem;">
                    <i class="fa-solid fa-angle-left"></i>
                    <span class="line-text">工具合集</span>
                    <i class="fa-solid fa-angle-right"></i>
                </div>
                <div class="chat_commento" id="ltk">
                    <!--第一组-->
                            <div class="row" style="margin-top: 0.5rem;">
                                <div class="col">
                                        <div class="link-card cards" id="qunfa-zb" data-bs-toggle="modal" data-bs-target="#coordinateModal">
                                            <span class="link-name" id="link-name-1">企微群发</span>
                                        </div>
                                </div>
                               
                                <div class="col 2">
                                    <div class="link-card cards" id="greatqfbtn-zb" data-bs-toggle="modal" data-bs-target="#twoCoordinateModal">
                                            <span class="link-name" id="link-name-5">企微标签</span>
                                    </div>
                                </div>
                                <div class="col">
                                    <div class="link-card cards" id="guihua" data-bs-toggle="modal" data-bs-target="#guihuaModal">
                                            <span class="link-name" id="link-name-5">发送规划</span>
                                    </div>
                                </div>
                            </div>
                            <div class="row" style="margin-top: 1.5rem;">
                                <div class="col">
                                        <div class="link-card cards" id="jwqgg" data-bs-toggle="modal" data-bs-target="#sixCoordinateModal">
                                            <span class="link-name" id="link-name-1">教务群公告</span>
                                        </div>
                                </div>
                                <div class="col">
                                    <div class="link-card cards" id="creatguihua" >
                                            <span class="link-name" id="link-name-5">生成规划</span>
                                    </div>
                                </div>
                               
                            </div>
                </div>

                <!--网站链接-->


            </div>
            <!--作业批改-->
            <div class="homework" id="homework" style="display: none">
                
               
                <div class="box-wrapper">
                    
                    <!--关闭按钮-->
                    <div class="closebox fixed-top" id="closehomework">
                        <i class="fa-solid fa-circle-xmark"></i>
                    </div>
                    <div class="box-left" style="min-width: 100%;">

                        <iframe src="https://eexvqyetrztq.sealosbja.site/jqr" width="1300" height="900" title="内嵌的HTML页面" style="width: 1250px; height: 750px; zoom: 0.7;" frameborder="0" scrolling="auto"></iframe>
                    </div>

                     
                </div>

            </div>
            <!--更多页面-->
             <div class="box" id="box" style="display: none">
                <div class="box-wrapper">
                    <!--关闭按钮-->
                    <div class="closebox fixed-top" id="closemore">
                        <i class="fa-solid fa-circle-xmark"></i>
                    </div>
                    <!--左侧内容-->
                    <div class="box-left">
                        <div class="img-title">
                            <span class="img-title-big" id="logo-title-other">Bywind</span>
                            <span class="img-text" id="logo-title-other-small">.xyz</span><br/>
                            <span class="img-text">&nbsp;v&nbsp;1.0</span>
                            、
                        </div>
                        <!--更多内容-->
                        <div class="accordion" id="accordion">
                            <div class="accordion-item">
                                <h2 class="accordion-header" id="headingOne">
                                    <button class="accordion-button" type="button" data-bs-toggle="collapse"
                                            data-bs-target="#collapseOne" aria-expanded="true"
                                            aria-controls="collapseOne">
                                        壁纸设置
                                    </button>
                                </h2>
                                <div id="collapseOne" class="accordion-collapse collapse show"
                                     aria-labelledby="headingOne" data-bs-parent="#accordion">
                                    <div class="accordion-body">
                                        <div class="set">
                                            <div class="wallpaper" id="wallpaper">
                                                <div class="form-radio">
                                                    <input type="radio" class="set-wallpaper" style="display: none;"
                                                           id="radio1" value="1" name="wallpaper-type">
                                                    <label for="radio1">默认壁纸</label>
                                                </div>
                                                <div class="form-radio">
                                                    <input type="radio" class="set-wallpaper" style="display: none;"
                                                           id="radio2" value="2" name="wallpaper-type">
                                                    <label for="radio2" id="wallpaper_text1">每日一图</label>
                                                </div>
                                                <div class="form-radio">
                                                    <input type="radio" class="set-wallpaper" style="display: none;"
                                                           id="radio3" value="3" name="wallpaper-type">
                                                    <label for="radio3" id="wallpaper_text2">随机风景</label>
                                                </div>
                                                
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            
                            <!--更新日志-->
                            <div class="accordion-item">
                                <h2 class="accordion-header" id="headingTwo">
                                    <button class="accordion-button collapsed" type="button"
                                            data-bs-toggle="collapse" data-bs-target="#collapseTwo"
                                            aria-expanded="false" aria-controls="collapseTwo">
                                        更新日志
                                    </button>
                                </h2>
                                <div id="collapseTwo" class="accordion-collapse collapse"
                                     aria-labelledby="headingTwo" data-bs-parent="#accordion">
                                    <div class="accordion-body">
                                        <div class="upnote">
										<span class="uptext">
                                                    <i class="fa-solid fa-circle-plus"></i>&nbsp;各时间点定时提醒
                                                </span>
                                                <span class="uptext">
                                                    <i class="fa-solid fa-circle-plus"></i>&nbsp;内置开课物料
                                                </span>
                                            <span class="uptext">
                                                    <i class="fa-solid fa-circle-plus"></i>&nbsp;企微群发和企微打标签功能支持
                                                </span>
                                            <span class="uptext">
                                                    <i class="fa-solid fa-circle-plus"></i>&nbsp;音乐播放器支持音量控制
                                                </span>
                                            <span class="uptext">
                                                    <i class="fa-solid fa-screwdriver-wrench"></i>&nbsp;修复天气 API
                                                </span>
                                            <span class="uptext">
                                                    <i class="fa-solid fa-screwdriver-wrench"></i>&nbsp;时光胶囊显示错误
                                                </span>
                                            
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!--Aplayer-->
                    <div class="box-right">
                        <div id="aplayer">
                            <span>音乐播放器加载失败</span>
                        </div>
                    </div>
                </div>
            </div>
        
        </div>
    </main>
    <!-- 版权信息 -->
    <footer id="footer" class="fixed-bottom footer">
        <div class="power">
                <span id="power" data-toggle="modal">Developer&nbsp;&copy;
                    <script>
                        document.write((new Date()).getFullYear());
                    </script>
                    JiangLai
                </span>
            
        </div>
        <!-- 歌词显示 -->
        <div id="lrc"></div>
    </footer>
</section>
<!-- sw.js -->

<!-- noscript -->
<noscript>
    <div class="noscript fixed-top">请开启 JavaScript</div>
</noscript>
<!-- JS -->
<script type="text/javascript" src="./js/main.js"></script>
<script type="text/javascript" src="./js/set.js"></script>
<script type="text/javascript" src="./js/time.js"></script>
<script type="text/javascript" src="./js/work.js"></script>
<script type="text/javascript" src="./js/js.cookie.js"></script>
<script type="text/javascript"
        src="https://lf9-cdn-tos.bytecdntp.com/cdn/expire-1-y/bootstrap/5.1.0/js/bootstrap.min.js">
</script>

<!-- 坐标输入模态框 -->
<div class="modal fade" id="coordinateModal" role="dialog" aria-labelledby="coordinateModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="coordinateModalLabel">请输入坐标值</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form>
                    <!-- 预设坐标选择 -->
                    <div class="mb-3">
                        <label class="form-label" style="color:#000">预设坐标：</label>
                        <select class="form-select" style="color:#000" id="presetCoordinates">
                            <option value="">自定义</option>
                            <option value="default">默认坐标</option>
                            <option value="resolution1080p">1080P分辨率</option>
                            <option value="resolution1440p">1440P分辨率</option>
                        </select>
                    </div>
                    
                    <!-- 可收纳的坐标输入区域 -->
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" id="toggleCoordinates" onclick="toggleCoordinateSection('coordinateSection1')">
                            <i class="fa-solid fa-chevron-right"></i> 搜索框坐标
                        </button>
                        <div id="coordinateSection1" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="x1" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" value="2126" class="form-control" style="color:#000" id="x1" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="y1" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" value="682" class="form-control" style="color:#000" id="y1" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('coordinateSection2')">
                            <i class="fa-solid fa-chevron-right"></i> 单选框坐标
                        </button>
                        <div id="coordinateSection2" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="x2" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" value="1156" class="form-control" style="color:#000" id="x2" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="y2" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" value="848" class="form-control" style="color:#000" id="y2" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('coordinateSection3')">
                            <i class="fa-solid fa-chevron-right"></i> 搜索框叉叉坐标
                        </button>
                        <div id="coordinateSection3" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="x3" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" value="2268" class="form-control" style="color:#000" id="x3" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="y3" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" value="686" class="form-control" style="color:#000" id="y3" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="coordinateSubmit">确定</button>
            </div>
        </div>
    </div>
</div>

<script>
// 坐标输入框可收纳功能
function toggleCoordinateSection(sectionId) {
    var section = $('#' + sectionId);
    var button = section.prev('button');
    var icon = button.find('i');
    
    if (section.is(':visible')) {
        section.hide();
        icon.removeClass('fa-chevron-down').addClass('fa-chevron-right');
    } else {
        section.show();
        icon.removeClass('fa-chevron-right').addClass('fa-chevron-down');
    }
}

// 预设坐标配置（HTML中写死的坐标值）
var presetCoordinatesConfig = {
    'default': {
        'coordinateModal': {x1: 1292, y1: 313, x2: 705, y2: 418, x3: 1400, y3: 316},
        'twoCoordinateModal': {twoX1: 712, twoY1: 207, twoX2: 600, twoY2: 275},
        'sixCoordinateModal': {sixX1: 357, sixY1: 46, sixX2: 453, sixY2: 153, sixX3: 1770, sixY3: 128, sixX4: 1500, sixY4: 530, sixX5: 1442, sixY5: 537, sixX6: 1521, sixY6: 400}
    },
    'resolution1080p': {
        'coordinateModal': {x1: 1292, y1: 313, x2: 705, y2: 418, x3: 1400, y3: 316},
        'twoCoordinateModal': {twoX1: 712, twoY1: 207, twoX2: 600, twoY2: 275},
        'sixCoordinateModal': {sixX1: 1600, sixY1: 500, sixX2: 368, sixY2: 153, sixX3: 1775, sixY3: 122, sixX4: 1546, sixY4: 533, sixX5: 1496, sixY5: 536, sixX6: 1551, sixY6: 400}
    },
    'resolution1440p': {
        'coordinateModal': {x1: 2100, y1: 670, x2: 1152, y2: 850, x3: 2268, y3: 686},
        'twoCoordinateModal': {twoX1: 1224, twoY1: 510, twoX2: 984, twoY2: 616},
        'sixCoordinateModal': {sixX1: 520, sixY1: 78, sixX2: 510, sixY2: 236, sixX3: 2912, sixY3: 190, sixX4: 2526, sixY4: 852, sixX5: 2442, sixY5: 852, sixX6: 2566, sixY6: 640}
    }
};

// 处理预设坐标选择
function handlePresetSelection(modalId, presetSelectId) {
    $('#' + presetSelectId).change(function() {
        var presetType = $(this).val();
        if (presetType && presetCoordinatesConfig[presetType] && presetCoordinatesConfig[presetType][modalId]) {
            var coordinates = presetCoordinatesConfig[presetType][modalId];
            
            // 设置坐标输入框的值
            $.each(coordinates, function(key, value) {
                $('#' + key).val(value);
            });
        }
    });
}

// 页面加载时，从localStorage加载并填充坐标值
$(document).ready(function() {
    // 加载三个坐标点的数据
    if(localStorage.getItem('savedCoordinates')) {
        var coordinates = JSON.parse(localStorage.getItem('savedCoordinates'));
        $('#x1').val(coordinates.x1 || '');
        $('#y1').val(coordinates.y1 || '');
        $('#x2').val(coordinates.x2 || '');
        $('#y2').val(coordinates.y2 || '');
        $('#x3').val(coordinates.x3 || '');
        $('#y3').val(coordinates.y3 || '');
    }
    
    // 加载两个坐标点的数据
    if(localStorage.getItem('savedTwoCoordinates')) {
        var twoCoordinates = JSON.parse(localStorage.getItem('savedTwoCoordinates'));
        $('#twoX1').val(twoCoordinates.twoX1 || '');
        $('#twoY1').val(twoCoordinates.twoY1 || '');
        $('#twoX2').val(twoCoordinates.twoX2 || '');
        $('#twoY2').val(twoCoordinates.twoY2 || '');
    }
    
    // 绑定预设坐标选择事件
    handlePresetSelection('coordinateModal', 'presetCoordinates');
    handlePresetSelection('twoCoordinateModal', 'presetTwoCoordinates');
    handlePresetSelection('sixCoordinateModal', 'presetSixCoordinates');
});

// 坐标提交按钮事件处理
$('#coordinateSubmit').click(function() {
    // 获取输入的坐标值
    var x1 = $('#x1').val();
    var y1 = $('#y1').val();
    var x2 = $('#x2').val();
    var y2 = $('#y2').val();
    var x3 = $('#x3').val();
    var y3 = $('#y3').val();
    
    // 可以在这里处理坐标值，例如存储到变量或发送到服务器
    console.log('坐标1: (' + x1 + ', ' + y1 + ')');
    console.log('坐标2: (' + x2 + ', ' + y2 + ')');
    console.log('坐标3: (' + x3 + ', ' + y3 + ')');
    
    // 保存坐标值到localStorage
    var coordinates = {
        x1: x1,
        y1: y1,
        x2: x2,
        y2: y2,
        x3: x3,
        y3: y3
    };
    localStorage.setItem('savedCoordinates', JSON.stringify(coordinates));
    
    // 使用pywebview.api将坐标信息发送到Python后端
    if (typeof pywebview !== 'undefined' && pywebview.api) {
        pywebview.api.save_coordinates(coordinates).then(function(response) {
            console.log(response);
        }).catch(function(error) {
            console.error('发送坐标信息失败:', error);
        });
    }
    
    // 关闭模态框
    $('#coordinateModal').modal('hide');
});
</script>

<!-- 两个坐标输入模态框 -->
<div class="modal fade" id="twoCoordinateModal" role="dialog" aria-labelledby="twoCoordinateModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="twoCoordinateModalLabel">请输入坐标值</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form>
                    <!-- 预设坐标选择 -->
                    <div class="mb-3">
                        <label class="form-label" style="color:#000">预设坐标：</label>
                        <select class="form-select" style="color:#000" id="presetTwoCoordinates">
                            <option value="">自定义</option>
                            <option value="default">默认坐标</option>
                            <option value="resolution1080p">1080P分辨率</option>
                            <option value="resolution1440p">1440P分辨率</option>
                        </select>
                    </div>
                    
                    <!-- 可收纳的坐标输入区域 -->
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('twoCoordinateSection1')">
                            <i class="fa-solid fa-chevron-right"></i> 打标签搜索框坐标
                        </button>
                        <div id="twoCoordinateSection1" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="twoX1" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="twoX1" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="twoY1" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="twoY1" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('twoCoordinateSection2')">
                            <i class="fa-solid fa-chevron-right"></i> 单选框坐标
                        </button>
                        <div id="twoCoordinateSection2" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="twoX2" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="twoX2" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="twoY2" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="twoY2" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="twoCoordinateSubmit">确定</button>
            </div>
        </div>
    </div>
</div>

<script>
// 两个坐标提交按钮事件处理
$('#twoCoordinateSubmit').click(function() {
    // 获取输入的坐标值
    var twoX1 = $('#twoX1').val();
    var twoY1 = $('#twoY1').val();
    var twoX2 = $('#twoX2').val();
    var twoY2 = $('#twoY2').val();
    
    // 可以在这里处理坐标值，例如存储到变量或发送到服务器
    console.log('坐标1: (' + twoX1 + ', ' + twoY1 + ')');
    console.log('坐标2: (' + twoX2 + ', ' + twoY2 + ')');
    
    // 保存坐标值到localStorage
    var twoCoordinates = {
        twoX1: twoX1,
        twoY1: twoY1,
        twoX2: twoX2,
        twoY2: twoY2
    };
    localStorage.setItem('savedTwoCoordinates', JSON.stringify(twoCoordinates));
    
    // 使用pywebview.api将坐标信息发送到Python后端
    if (typeof pywebview !== 'undefined' && pywebview.api) {
        pywebview.api.save_two_coordinates(twoCoordinates).then(function(response) {
            console.log(response);
        }).catch(function(error) {
            console.error('发送坐标信息失败:', error);
        });
    }
    
    // 关闭模态框
    $('#twoCoordinateModal').modal('hide');
});
</script>

<!-- 六个坐标输入模态框 - 教务群公告 -->
<div class="modal fade" id="sixCoordinateModal" role="dialog" aria-labelledby="sixCoordinateModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="sixCoordinateModalLabel">请输入坐标值（教务群公告）</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form>
                    <!-- 预设坐标选择 -->
                    <div class="mb-3">
                        <label class="form-label" style="color:#000">预设坐标：</label>
                        <select class="form-select" style="color:#000" id="presetSixCoordinates">
                            <option value="">自定义</option>
                            <option value="default">默认坐标</option>
                            <option value="resolution1080p">1080P分辨率</option>
                            <option value="resolution1440p">1440P分辨率</option>
                        </select>
                    </div>
                    
                    <!-- 公告内容输入框 -->
                    <div class="mb-4">
                        <label for="announcementContent" class="col-form-label" style="color:#000">请输入公告内容 (必须包含{link}):</label>
                        <textarea class="form-control" style="color:#000; min-height: 120px; resize: vertical;" id="announcementContent" placeholder="请输入公告内容，例如：请点击{link}查看详情" rows="4"></textarea>
                    </div>
                    
                    <!-- 可收纳的坐标输入区域 -->
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('sixCoordinateSection1')">
                            <i class="fa-solid fa-chevron-right"></i> 群聊搜索框坐标
                        </button>
                        <div id="sixCoordinateSection1" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="sixX1" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixX1" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="sixY1" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixY1" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('sixCoordinateSection2')">
                            <i class="fa-solid fa-chevron-right"></i> 第一条群聊坐标
                        </button>
                        <div id="sixCoordinateSection2" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="sixX2" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixX2" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="sixY2" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixY2" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('sixCoordinateSection3')">
                            <i class="fa-solid fa-chevron-right"></i> 公告输入框坐标
                        </button>
                        <div id="sixCoordinateSection3" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="sixX3" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixX3" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="sixY3" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixY3" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('sixCoordinateSection4')">
                            <i class="fa-solid fa-chevron-right"></i> 发送按钮坐标
                        </button>
                        <div id="sixCoordinateSection4" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="sixX4" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixX4" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="sixY4" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixY4" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('sixCoordinateSection5')">
                            <i class="fa-solid fa-chevron-right"></i> 确认发送坐标
                        </button>
                        <div id="sixCoordinateSection5" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="sixX5" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixX5" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="sixY5" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixY5" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="coordinate-container">
                        <button type="button" class="btn btn-info btn-sm mb-3" onclick="toggleCoordinateSection('sixCoordinateSection6')">
                            <i class="fa-solid fa-chevron-right"></i> 关闭按钮坐标
                        </button>
                        <div id="sixCoordinateSection6" style="display: none;">
                            <div class="row mb-3">
                                <div class="col">
                                    <label for="sixX6" class="col-form-label" style="color:#000">X值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixX6" placeholder="请输入X坐标">
                                </div>
                                <div class="col">
                                    <label for="sixY6" class="col-form-label" style="color:#000">Y值</label>
                                    <input type="number" step="any" class="form-control" style="color:#000" id="sixY6" placeholder="请输入Y坐标">
                                </div>
                            </div>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="sixCoordinateSubmit">确定</button>
            </div>
        </div>
    </div>
</div>

<script>
// 模态框显示时加载已保存的坐标值
    $('#sixCoordinateModal').on('show.bs.modal', function (e) {
        // 尝试从localStorage获取保存的坐标值
        var savedSixCoordinates = localStorage.getItem('savedSixCoordinates');
        if (savedSixCoordinates) {
            try {
                var sixCoordinates = JSON.parse(savedSixCoordinates);
                // 设置输入框的值
                if (sixCoordinates.sixX1 !== undefined) $('#sixX1').val(sixCoordinates.sixX1);
                if (sixCoordinates.sixY1 !== undefined) $('#sixY1').val(sixCoordinates.sixY1);
                if (sixCoordinates.sixX2 !== undefined) $('#sixX2').val(sixCoordinates.sixX2);
                if (sixCoordinates.sixY2 !== undefined) $('#sixY2').val(sixCoordinates.sixY2);
                if (sixCoordinates.sixX3 !== undefined) $('#sixX3').val(sixCoordinates.sixX3);
                if (sixCoordinates.sixY3 !== undefined) $('#sixY3').val(sixCoordinates.sixY3);
                if (sixCoordinates.sixX4 !== undefined) $('#sixX4').val(sixCoordinates.sixX4);
                if (sixCoordinates.sixY4 !== undefined) $('#sixY4').val(sixCoordinates.sixY4);
                if (sixCoordinates.sixX5 !== undefined) $('#sixX5').val(sixCoordinates.sixX5);
                if (sixCoordinates.sixY5 !== undefined) $('#sixY5').val(sixCoordinates.sixY5);
                if (sixCoordinates.sixX6 !== undefined) $('#sixX6').val(sixCoordinates.sixX6);
                if (sixCoordinates.sixY6 !== undefined) $('#sixY6').val(sixCoordinates.sixY6);
                // 加载公告内容
                if (sixCoordinates.announcementContent !== undefined) $('#announcementContent').val(sixCoordinates.announcementContent);
            } catch (e) {
                console.error('解析保存的坐标失败:', e);
            }
        }
    });

// 六个坐标提交按钮事件处理
    $('#sixCoordinateSubmit').click(function() {
        // 获取输入的坐标值
        var sixX1 = $('#sixX1').val();
        var sixY1 = $('#sixY1').val();
        var sixX2 = $('#sixX2').val();
        var sixY2 = $('#sixY2').val();
        var sixX3 = $('#sixX3').val();
        var sixY3 = $('#sixY3').val();
        var sixX4 = $('#sixX4').val();
        var sixY4 = $('#sixY4').val();
        var sixX5 = $('#sixX5').val();
        var sixY5 = $('#sixY5').val();
        var sixX6 = $('#sixX6').val();
        var sixY6 = $('#sixY6').val();
        
        // 获取公告内容
        var announcementContent = $('#announcementContent').val();
        
        // 验证公告内容是否包含{link}
        // if (announcementContent.indexOf('{link}') === -1) {
        //     alert('公告内容必须包含{link}！');
        //     return;
        // }
        
        // 可以在这里处理坐标值，例如存储到变量或发送到服务器
        console.log('坐标1: (' + sixX1 + ', ' + sixY1 + ')');
        console.log('坐标2: (' + sixX2 + ', ' + sixY2 + ')');
        console.log('坐标3: (' + sixX3 + ', ' + sixY3 + ')');
        console.log('坐标4: (' + sixX4 + ', ' + sixY4 + ')');
        console.log('坐标5: (' + sixX5 + ', ' + sixY5 + ')');
        console.log('坐标6: (' + sixX6 + ', ' + sixY6 + ')');
        console.log('公告内容: ' + announcementContent);
        
        // 保存坐标值到localStorage
        var sixCoordinates = {
            sixX1: sixX1,
            sixY1: sixY1,
            sixX2: sixX2,
            sixY2: sixY2,
            sixX3: sixX3,
            sixY3: sixY3,
            sixX4: sixX4,
            sixY4: sixY4,
            sixX5: sixX5,
            sixY5: sixY5,
            sixX6: sixX6,
            sixY6: sixY6,
            announcementContent: announcementContent
        };
        
        // 记录公告内容信息，用于调试
        console.log('公告内容长度:', announcementContent ? announcementContent.length : 0, '字符');
        if (announcementContent) {
            // 检查是否包含非ASCII字符（可能是表情符号）
            const hasNonAscii = /[^\x00-\x7F]/.test(announcementContent);
            console.log('公告内容包含非ASCII字符:', hasNonAscii);
        }
        
    localStorage.setItem('savedSixCoordinates', JSON.stringify(sixCoordinates));
    
    // 使用pywebview.api将坐标信息发送到Python后端
    if (typeof pywebview !== 'undefined' && pywebview.api) {
        // 尝试将表情符号正确序列化为JSON
        try {
            // 确保announcementContent是字符串
            if (sixCoordinates.announcementContent && typeof sixCoordinates.announcementContent !== 'string') {
                sixCoordinates.announcementContent = String(sixCoordinates.announcementContent);
            }
            
            // 确保announcementContent能被正确序列化
            const safeSixCoordinates = JSON.parse(JSON.stringify(sixCoordinates));
            console.log('发送坐标数据到后端:', safeSixCoordinates);
            
            // 发送到Python后端处理
            pywebview.api.save_six_coordinates(safeSixCoordinates)
                .then(function(response) {
                    console.log('群公告处理响应:', response);
                    // 显示成功提示，使用成功图标
                    iziToast.show({
                        timeout: 2000,
                        icon: "fa-solid fa-circle-check",
                        message: '群公告发送完毕！！'
                    });
                })
                .catch(function(error) {
                    // 处理错误情况
                    console.error('发送坐标信息失败:', error);
                    let errorMsg = '发送坐标信息失败';
                    if (error) {
                        if (error.toString().includes('UnicodeEncodeError')) {
                            errorMsg += ': 内容包含无法处理的字符';
                        } else {
                            errorMsg += ': ' + error.toString();
                        }
                    }
                    iziToast.show({
                        timeout: 3000,
                        icon: "fa-solid fa-circle-exclamation",
                        message: errorMsg
                    });
                });
        } catch (e) {
            console.error('JSON序列化失败:', e);
            let errorMsg = '处理内容时出错';
            if (e.toString().includes('Unicode')) {
                errorMsg += ': 内容包含特殊字符，请尝试使用其他表情符号';
            } else {
                errorMsg += ': ' + e.toString();
            }
            iziToast.show({
                timeout: 3000,
                icon: "fa-solid fa-circle-exclamation",
                message: errorMsg
            });
        }
    } else {
        console.warn('pywebview API不可用');
        iziToast.show({
            timeout: 2000,
            icon: "fa-solid fa-circle-exclamation",
            message: '系统功能不可用，请重新启动应用'
        });
    }
    
    // 关闭模态框
    $('#sixCoordinateModal').modal('hide');
});
</script>

<!-- 规划发送模态框 -->
<div class="modal fade" id="guihuaModal" role="dialog" aria-labelledby="guihuaModalLabel" aria-hidden="true">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="guihuaModalLabel">发送规划</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form>
                    <div class="mb-4">
                        <label for="guihuaInput" class="col-form-label" style="color:#000">请输入消息内容 (必须包含{nickname}):</label>
                        <textarea class="form-control" style="color:#000; min-height: 150px; resize: vertical;" id="guihuaInput" placeholder="请输入消息内容" rows="6"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary" id="guihuaSubmit">确定</button>
            </div>
        </div>
    </div>
</div>

<script>
// 处理规划发送模态框的提交事件
$('#guihuaSubmit').click(function() {
    // 获取输入内容
    var guihuaInput = $('#guihuaInput').val();
    
    // 验证输入内容是否包含{nickname}
    if (guihuaInput.indexOf('{nickname}') === -1) {
        alert('输入内容必须包含{nickname}！');
        return;
    }
    
    console.log('规划输入内容: ' + guihuaInput);
    
    // 使用pywebview.api将信息发送到Python后端
    if (typeof pywebview !== 'undefined' && pywebview.api) {
        pywebview.api.process_guihua_request({input: guihuaInput}).then(function(response) {
            console.log(response);
            alert(response);
        }).catch(function(error) {
            console.error('发送规划请求失败:', error);
            alert('发送请求失败，请重试！'+error);
        });
    }
    
    // 关闭模态框
    $('#guihuaModal').modal('hide');
});
</script>

</body>

</html>
